﻿@model SuperiorModel.ManagerAccountModel
@{
    ViewBag.Title = "我的推广";
    Layout = "~/Views/Shared/_Layout.cshtml";
    var amount = ViewBag.Amount;
    var managerId = ViewBag.ManagerId;
    var total = ViewBag.Total;
    var cashList = ViewBag.CashList;
}
<style>
    /*.weui_btn_primary {
        border: 1px double #ff7019;
        border-radius: 5px;
        background: #FFFFFF;
        color: #ff7019;
        flex: 1;
        width: 40%;
        float: none;
        margin: auto;
        line-height: 2;
    }*/
    .weui-cell_link {
    color: #d05907;
    font-size: 14px;
}
</style>
<div class="weui-content" LoadRequstCount="@cashList.Count">
    <div class="wy-center-top">
        <a href="javascript:;">
            <div class="weui-media-box weui-media-box_appmsg">
                <div class="weui-media-box__hd"><img class="weui-media-box__thumb radius" src="@Model.HeadImgUrl" alt=""></div>
                <div class="weui-media-box__bd">
                    <h4 class="weui-media-box__title user-name">@(Model.NickName)您好</h4>
                    <h5 class="weui-media-box__title user-name">您的推广ID为@(managerId)</h5>
                    <p class="user-grade">注册时间:@Model.CreateTime</p>

                </div>

            </div>
        </a>

    </div>
    <div class="weui-panel weui-panel_access">

        <div class="weui-panel__bd">
            <div class="weui-flex">
                <div class="weui-flex__item">
                    <a href="javascript:;" class="center-ordersModule">
                        <div class="imgicon"><img src="/Content/images/daifukuan.png"></div>
                        <div class="myburse txt-color-red" id="div_amount">￥@amount</div>
                        <div class="myburse wy-news-info">我的收益</div>
                    </a>
                </div>
                <div class="weui-flex__item">
                    <a href="/ManagerAccount/ProceedsList" class="center-ordersModule">
                        <div class="imgicon"><img src="/Content/images/jilu.png"></div>
                        <div class="myburse txt-color-red">@(total)单</div>
                        <div class="myburse wy-news-info">收益记录</div>
                    </a>
                </div>
                <div class="weui-flex__item">
                    <a href="javascript:void(0);" class="center-ordersModule" id="btn_see">
                        <div class="imgicon"><img src="/Content/images/shuoming.png"></div>
                        <div class="myburse txt-color-red">查看</div>
                        <div class="myburse wy-news-info">推广说明</div>
                    </a>
                </div>

            </div>
        </div>
        <div class="weui_btn_area">

            <a class="weui_btn weui_btn_primary open-popup ose-popup" href="javascript:void(0)" id="btn_tx">提现</a>
            <a class="weui_btn weui_btn_primary open-popup ose-popup" href="javascript:void(0)" id="btn_refresh">刷新</a>

        </div>
        <div class="weui-media-box__desc " style="text-align: center;padding-bottom: 20px">———— 提现记录 ————</div>
    </div>
    <div class="weui-panel weui-panel_access" id="div_list">
        @foreach (var item in cashList)
        {
            <div class="weui-panel__ft">
                <div class="weui-cell weui-cell_access weui-cell_link">

                    <div class="weui-cell__bd">
                        <div>单号@(item.OrderNo)</div>
                        @if (item.OrderStatus == 0)
                        {
                            <div>处理中</div>
                        }
                        else if (item.OrderStatus == 1)
                        {
                            <div>成功</div>
                        }
                        else if (item.OrderStatus == 2)
                        {
                            <div>失败</div>
                        }
                       
                        
                    </div>
                    <div class="weui_cell__ft">
                    <div>@item.CreateTime</div>
                    <div>-@item.Amount</div>
                        </div>
                </div>
            </div>
        }


    </div>
    <div class="weui-loadmore" style="display:none">
        <i class="weui-loading"></i>
        <span class="weui-loadmore__tips">正在加载</span>
    </div>

</div>
<input type="hidden" id="hideAmount" value="@amount" />

<script src="~/scripts/Service/Index/ManagerAccountIndex.js"></script>
<script>

    ManagerAccountIndexClass.Instance.Init();
</script>



